package io.reader;

import java.io.File;
import java.io.FileReader;

public class Demo01 {
    public static void main(String[] args) throws Exception {
        File file = new File("F://Test//T2//a.txt");
        FileReader fileReader = new FileReader(file);
        int length = 0;
        char[] chars = new char[1024];
        while ((length = fileReader.read(chars)) != -1) {
            System.out.println(new String(chars, 0, length));
        }
    }
}
